//
//  ST_MyError.swift
//  btvideo
//
//  Created by mac on 2021/9/7.
//  Copyright © 2021 JarvanZhang. All rights reserved.
//

import Foundation

enum ST_MyError: Error {
    case description(_ description: String?)
}

extension ST_MyError: LocalizedError {
    
    var errorDescription: String? {
        switch self {
        case .description(let description):
            return description ?? "未知错误"
        }
    }
}
